package Day002_final_static_接口.demo02static应用;

public class Test {
    public static void main(String[] args) {
        System.out.println(new Utils().PI); //先创建对象,再访问属性
        System.out.println(Utils.PI); //直接访问

        //获取整型数组的最大值
        int[] arr= {10,20,30,40};
        System.out.println(Utils.gatMax(arr));

        /*int max = arr[0];
        for (int i = 0; i < arr.length; i++) {
            if (max < arr[i]){
                max = arr[i];
            }
        }
        System.out.println(max);
        */
    }
}
